﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;

namespace Nanohope_v1._0
{
    class CanvasManager
    {
        //public static int canvasState = 0;
        GeneralCanvas canvas;
        PlayerStats stats;
        //Menu
        MainMenu menu;
        //Game
        Game game;
        //MenuInGame
        MenuInGame menuInGame;
//      Attributes attributes;
//      QuestLog questLog;
//      Skills skills;
        Configuration config;
        public static CanvasManager instance;

        public CanvasManager()
        {
            stats = new PlayerStats();
            menu = new MainMenu();
            menuInGame = new MenuInGame(stats);
            game = new Game();
            canvas = menu;
            instance = this;
        }

        public void gameUpdate(GameTime gameTime)
        {
            canvas.gameUpdate(gameTime);
        }

        public void onDraw(SpriteBatch spriteBatch)
        {
            canvas.onDraw(spriteBatch);
        }
        public void newGame()
        {
            canvas = menuInGame;
        }
        public void backToGame()
        {
            canvas = game;
        }
        public void backToMenuInGame()
        {
            canvas = menuInGame;
        }
   }
}
